﻿

using System;

namespace Miao
{
    public class RepeatCallHandle : Handle
    {
        internal float interval;
        internal float timer;
        internal Action repeatCall;
        internal RepeatCallHandle(Action repeatCall, float interval)
        {
            onFinished += () => MiaoRuntime.Updater.RemoveRepeatCall(this);
            this.repeatCall = repeatCall;
            this.interval = interval;
            timer = 0;
        }


    }
}